package com.swsc.solarverse.dao.entity.forward;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-08-23
 */
@Data
@TableName("solar_forward_device_info")
public class ForwardDeviceInfoDO {
    @com.baomidou.mybatisplus.annotation.TableId(type= com.baomidou.mybatisplus.annotation.IdType.AUTO)
    private Integer id;
    /** 创建时间 由数据库控制 */
    @TableField(value = "create_time", insertStrategy = com.baomidou.mybatisplus.annotation.FieldStrategy.NEVER, updateStrategy = com.baomidou.mybatisplus.annotation.FieldStrategy.NEVER)
    private LocalDateTime createTime;

    /** 更新时间 由数据库控制 */
    @TableField(value = "update_time", updateStrategy = com.baomidou.mybatisplus.annotation.FieldStrategy.NEVER)
    private LocalDateTime updateTime;
    /**
     * 创建者
     */
    @TableField(value = "create_by", updateStrategy = com.baomidou.mybatisplus.annotation.FieldStrategy.NEVER)
    private String createBy;

    /**
     * 修改者
     */
    @TableField(value = "update_by", insertStrategy = com.baomidou.mybatisplus.annotation.FieldStrategy.NEVER)
    private String updateBy;
    /**
     * 版本
     */
    @TableField(value = "version", update = "%s+1", fill = com.baomidou.mybatisplus.annotation.FieldFill.UPDATE)
    private Short version;

    /**
     * 删除标记, 逻辑删除
     */
    // @com.baomidou.mybatisplus.annotation.TableLogic(value = "0", delval = "unix_timestamp(now())")
    private Integer deleted;
    /**
     * 租户编号
     */
    @TableField("tenant_no")
    private Integer tenantNo;

    /**
     * 机构编号
     */
    @TableField("organ_no")
    private Integer organNo;

    @TableField("device_name")
    private String deviceName;

    @TableField("device_code")
    private String deviceCode;

    @TableField("device_sn")
    private String deviceSn;

    @TableField("device_dn")
    private String deviceDn;

    @TableField("device_source")
    private String deviceSource;

    @TableField("device_pid")
    private Long devicePid;

    @TableField("device_id")
    private Long deviceId;

    @TableField("device_uid")
    private String deviceUid;

    @TableField("template_id")
    private Integer templateId;

    @TableField("device_type")
    private Integer deviceType;

    @TableField("pvstr_num")
    private Integer pvstrNum;


    @TableField("zone")
    private String zone;

    @TableField("submatrix")
    private String submatrix;


}
